if (!require("pak", quietly = TRUE))
install.packages("pak")
::pak("jaspershen-lab/lagci")
pak::pak("jaspershen-lab/lagcishiny") pak
12 Installation of lagcishiny
You can install lagcishiny
successfully follow the following steps:
12.1 Installation
12.1.1 Install TinyTex
If you want to export reports in PDF format, you should install TinyTex
. TinyTex
is a simple Tex
suite to compile PDF
files, it is convenient to use in PC.
There are two ways to install TinyTex
for different users respectively.
12.1.1.1 Directly install TinyTex
After installing lagcishiny
, you can install TinyTex
via this command:
::install_tinytex() tinytex
Check if the TinyTex
is installed successfully:
::is_tinytex()
tinytex::tlmgr_version() tinytex
12.1.1.2 Locally install TinyTex
You can download the correct TinyTex
release at Github release, then install it via:
:::install_prebuilt(pkg = "PATH/TO/YOUR/FILE") tinytex
Check if the TinyTex
is installed successfully:
::is_tinytex()
tinytex::tlmgr_version() tinytex
12.2 Session information
sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: aarch64-apple-darwin20
Running under: macOS Tahoe 26.0
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Asia/Singapore
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] htmlwidgets_1.6.4 compiler_4.5.1 fastmap_1.2.0 cli_3.6.5
[5] tools_4.5.1 htmltools_0.5.8.1 rstudioapi_0.17.1 rmarkdown_2.29
[9] knitr_1.50 jsonlite_2.0.0 xfun_0.53 digest_0.6.37
[13] rlang_1.1.6 evaluate_1.0.4